package com.hs.srm.admin.modules.material.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.service.IService;
import com.hs.srm.admin.modules.material.entity.MaterialLeadEntity;
import com.hs.srm.common.utils.PageUtils;

/**
 * @author socik
 * @date 2019/5/28 14:10
 * @email socik@qq.com
 */
public interface MaterialLeadService extends IService<MaterialLeadEntity> {
	
	PageUtils queryPage(Map<String, Object> params);
	
    /**
     * @Description: 插入使用人数据
     */
	
    boolean insertMaterialLead(MaterialLeadEntity materialLeadEntity);
    
    /**
     * @Description: 根据物料号和工厂查询归还记录
     */
    
    MaterialLeadEntity selectEntityByCode(String code,String werks);

    /**
     * @Description: 根据物料号和工厂和登陆人查询
     */

    MaterialLeadEntity selectEntityByUser(String code,String werks,String username);
    /**
     * @Description: 查询角标数据
     */

    List<MaterialLeadEntity> selectEntityListByUser(String username);

    /**
     * @Description: 删除领料单数据
     */
    boolean delateMaterial(String pkid);

}
